package com.zhijian.medical.service;


import com.zhijian.medical.entity.po.DeviceTransferRecord;
import com.zhijian.medical.entity.vo.request.DeviceTransferRecordSearchVo;
import com.zhijian.medical.entity.vo.response.DeviceTransferRecordVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 仪器调动记录 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-01-01 15:40:34
 */
public interface DeviceTransferRecordService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    DeviceTransferRecord selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    DeviceTransferRecordVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param deviceTransferRecord
     * @return
     */
    Long insert(DeviceTransferRecord deviceTransferRecord);

    /**
     * 更改
     *
     * @param deviceTransferRecord
     * @return
     */
    boolean update(DeviceTransferRecord deviceTransferRecord);

    /**
     * 总数
     *
     * @param deviceTransferRecordSearchVo
     * @return
     */
    Integer count(DeviceTransferRecordSearchVo deviceTransferRecordSearchVo);

    /**
     * 列表
     *
     * @param deviceTransferRecordSearchVo
     * @return
     */
    List<DeviceTransferRecordVo> selectList(DeviceTransferRecordSearchVo deviceTransferRecordSearchVo);

    /**
     * 分页展示
     *
     * @param deviceTransferRecordSearchVo
     * @return
     */
    Page<DeviceTransferRecordVo> selectPage(DeviceTransferRecordSearchVo deviceTransferRecordSearchVo);
}